package xframe.ctl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.RequestProcessor;

public class XRequestProcessor extends RequestProcessor
{

    public XRequestProcessor()
    {
    }

	protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response)
    {
        try
        {
            request.setCharacterEncoding("utf-8");
        }
        catch(Exception e)
        {
            log.error(e);
        }
        return true;
    }

    protected static Log log;

    static 
    {
        log = LogFactory.getLog(org.apache.struts.action.RequestProcessor.class);
    }
}
